#define _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"
void test01()
{
	ST st;
	STInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	StackPush(&st, 6);
	StackPush(&st, 7);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//StackPush(NULL, 1);
	//STDataType top = StackTop(&st);
	//printf("%d\n", top);
	while (!StackEmpty(&st))
	{
		int top = StackTop(&st);
		printf("%d\n", top);
		StackPop(&st);
	}
	//int size = STSize(&st);
	//printf("%d\n", size);
	STDestroy(&st);
}
int main()
{
	test01();
	return 0;
}